package com.example.chat.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@TableName("tb_admin")
public class Admin {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String username = "";//用户名
    private String nickName = "";//昵称
    private String password = "";//密码
    private String tel = "";//电话
    private String ip = "";//IP地址
    private String email = "";//邮箱
    private int blacklist = 2;//是否黑名单 1是 2否
    private int type;//用户类型 1用户 2管理员
    private String icon = "";//头像
    private long createTime;//注册时间
    private long loginTime;//最近登入时间时间
    private long recordTime;//视频录存期限
    private String uid = "";//声网uid
    private Integer createAdmin = 0;//创建人
    private int times;//录制次数
    private int orderType;//0无套餐 1包月 2包年
    private int point;//积分

    @TableField(exist = false)
    private List<String> permission;
    @TableField(exist = false)
    private String createAdminName;
    @TableField(exist = false)
    private List<Role> roleIds;
}
